package com.ins.asyncrequest.hselect;

import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class indexofinfo extends HttpServlet {
	
	public String name = "ssss";
	public void setName(String name) {
		this.name = name;
	}

	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		this.doPost(request, response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setCharacterEncoding("UTF-8");
		response.setContentType("text/html; charset=UTF-8");
		response.setContentType("text/html");
		ServletContext sc = getServletContext();
		RequestDispatcher rd = null;
		name = request.getParameter("name");
        request.setAttribute( "name",name); 
        request.getRequestDispatcher("/WEB-INF/pages/instrumentList11.jsp").forward(request,response); 
		Writer writer=response.getWriter();
	}

}
